package bd

import android.graphics.BitmapFactory
import android.os.Bundle
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import com.bumptech.glide.Glide
import oa.lla.cca.R

class CO:AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_people_layout)
        initView()
    }

    private fun initView() {
        findViewById<ImageView>(R.id.back_left).setOnClickListener { finish() }
        val header:ImageView = findViewById(R.id.pic_header_img)
        val byteArrayExtra = intent.getByteArrayExtra("headerImg")
        val bitmap = BitmapFactory.decodeByteArray(byteArrayExtra, 0, byteArrayExtra!!.size)
        Glide.with(this).load(bitmap).into(header)
    }
}